<template>
    <el-tabs v-model="activeName">
        <el-tab-pane label="回款计划" name="first">
            <!--收起选项卡-->
            <el-container style="height: 85%;width: 100%;">
                <div style="margin-top: -10px;height: 90%;width: 100%;" >
                    <!--新建栏-->
                    <div style="border:1px solid #BFBFBF;padding: 10px;background-color: white;margin-top: 10px;height: 40px;">
                        <el-row :gutter="24">
                            <el-col :span="1.5">
                                <span style="font-size: 18px;line-height:40px;margin-left: 5px">回款计划</span>
                            </el-col>
                            <el-col :span="7">
                                <el-select v-model="value7" placeholder="请选择" @change="changebusni" style="width: 150px;margin-left: 20px">
                                    <el-option
                                            v-for="item in options"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                                <el-button style="background-color: #F05050;color: white;margin-left: 10px;" @click="cancelseek" icon="el-icon-back" v-show="seek" size="mini" round>解除搜索</el-button>
                            </el-col>
                            <el-col :span="9">
                                <el-input @keyup.enter.native="sousuo" placeholder="请输入搜索的信息" v-model="input23" style="width: 250px;">
                                    <i slot="suffix" class="el-input__icon el-icon-search" @click="sousuo"></i>
                                </el-input>
                            </el-col>
                            <el-col :span="6">
                                    <el-button style="margin-left:190px;margin-top:5px;" size="small"  type="primary" @click="xinzen('回款','first')">新建回款计划</el-button>
                            </el-col>
                        </el-row>
                    </div>

                    <!--表格数据框-->
                    <div style="margin-top: 8px;border: 1px solid #BFBFBF;background-color: white">
                        <div style="width: 100%;height: 40px;background-color: white;border-bottom: 1px solid #EBEEF5">
                            <div class="operate" v-show="cjy">
                                <div class="selected—title" style="border-right: 0px ">
                                    场景：<span v-if="this.value7[0]!=null">{{value7[0]}}/{{value7[1]}}</span>
                                </div>
                            </div>
                            <div class="operate" v-show="cje">
                                <div class="selected—title" >
                                    已选中<span class="selected—count">{{count}}</span>项
                                </div>
                                <div  class="selected—title2" v-show="isOne">
                                    <span @click="isAddRecord=true"><i class="el-icon-circle-plus-outline"></i>添加跟进记录</span>
                                </div>
                                <div  class="selected—title1" v-show="isOne" @click="xiugai2('回款','first')">
                                    <span><i class="el-icon-edit"></i>修改</span>
                                </div>
                            </div>
                        </div>
                        <el-table
                                :data="tableData4"
                                style="width: 100%"
                                max-height="420"
                                :default-sort = "{prop: 'date', order: 'descending'}"
                                @selection-change="handleSelectionChange">
                            <el-table-column
                                    type="selection"
                                    width="50"
                                    align="center">
                            </el-table-column>
                            <el-table-column
                                    fixed
                                    prop="returnedmoneyId"
                                    label="ID"
                                    sortable
                                    align="center"
                                    width="60">
                            </el-table-column>
                            <el-table-column
                                    label="主题"
                                    sortable
                                    align="center"
                                    width="160">
                                <template slot-scope="sp">
                                    <a v-html="sp.row.returnedmoneyTheme" class="businame" @click="todetails(sp.row)"></a>
                                </template>
                            </el-table-column>
                            <el-table-column
                                    label="客户"
                                    sortable
                                    align="center"
                                    width="150">
                                <template slot-scope="sp">
                                    <a v-html="sp.row.clientId.clientName" class="businame" @click="kehutodetails(sp.row)"></a>
                                </template>
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyMoney"
                                    label="金额"
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    label="计划回款日期"
                                    align="center"
                                    sortable
                                    width="130">
                                <template slot-scope="d">
                                    {{d.row.returnedmoneyTime | formatDate}}
                                </template>
                            </el-table-column>
                            <el-table-column
                                    label="订单"
                                    sortable
                                    align="center"
                                    width="150"
                                    prop="orderId.orderTheme">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyIssue"
                                    label="期次"
                                    sortable
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRetuen"
                                    label="是否回款"
                                    sortable
                                    align="center"
                                    width="140">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyBuck"
                                    label="外币备注"
                                    align="center"
                                    sortable
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRate"
                                    label="与人民币汇率"
                                    align="center"
                                    sortable
                                    width="140">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyPayment"
                                    label="支付方式"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRefund"
                                    label="计划类型"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyOwner"
                                    label="所有者"
                                    sortable
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRemark"
                                    label="备注"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    fixed="right"
                                    label="操作"
                                    align="center"
                                    width="100">
                                <template slot-scope="d">
                                    <!--如果是三个标签，后两个标签padding-left: 10px;-->
                                    <i style="font-size:18px;color: #409EFF" @click="xiugai(d.row,'回款','first')" class="el-icon-edit"></i>
                                    <svg @click="jl(d.row,'first','回款')" style="padding-left: 10px"  class="icon" aria-hidden="true">
                                        <use xlink:href="#icon-cz-jl"></use>
                                    </svg>
                                    <i style="font-size:18px;padding-left: 10px;color: #409EFF" class="el-icon-delete" @click="wylisc(d.row,'回款',)"></i>
                                </template>
                            </el-table-column>
                        </el-table>
                    </div>

                    <!--分页框-->
                    <div style="border: 1px solid #BFBFBF;padding: 10px;background-color: white;border-top: white;">
                        <div style="text-align: center">
                            <el-pagination
                                    @size-change="handleSizeChange"
                                    @current-change="handleCurrentChange"
                                    :current-page.sync="currentpage"
                                    :page-sizes="[10, 20, 30, 40]"
                                    :page-size="pageSize"
                                    layout="total, sizes, prev, pager, next, jumper"
                                    :total="totalSize"
                            >
                            </el-pagination>
                        </div>
                    </div>
                </div>
            </el-container>
        </el-tab-pane>
        <el-tab-pane label="退款计划" name="first2" >
            <!--收起选项卡-->
            <el-container style="height: 85%;width: 100%;">
                <div style="margin-top: -10px;height: 90%;width: 100%;" >
                    <!--新建栏-->
                    <div style="border:1px solid #BFBFBF;padding: 10px;background-color: white;margin-top: 10px;height: 40px;">
                        <el-row :gutter="24">
                            <el-col :span="1.5">
                                <span style="font-size: 18px;line-height:40px;margin-left: 5px">退款计划</span>
                            </el-col>
                            <el-col :span="7">
                                <el-select v-model="value72" placeholder="请选择" @change="changebusni2" style="width: 150px;margin-left: 20px">
                                    <el-option
                                            v-for="item in options2"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                                <el-button style="background-color: #F05050;color: white;margin-left: 10px;" @click="cancelseek2" icon="el-icon-back" v-show="seek2" size="mini" round>解除搜索</el-button>
                            </el-col>
                            <el-col :span="9">
                                <el-input @keyup.enter.native="sousuo2" placeholder="请输入搜索的信息" v-model="input232" style="width: 250px;">
                                    <i slot="suffix" class="el-input__icon el-icon-search" @click="sousuo2"></i>
                                </el-input>
                            </el-col>
                            <el-col :span="6">
                                <el-button style="margin-left:190px;margin-top:5px;" size="small"  type="primary" @click="xinzen('退款','first2')">新建退款计划</el-button>
                            </el-col>
                        </el-row>
                    </div>

                    <!--表格数据框-->
                    <div style="margin-top: 8px;border: 1px solid #BFBFBF;background-color: white">
                        <div style="width: 100%;height: 40px;background-color: white;border-bottom: 1px solid #EBEEF5">
                            <div class="operate" v-show="cjy2">
                                <div class="selected—title" style="border-right: 0px ">
                                    场景：<span>{{value7}}</span>
                                </div>
                            </div>
                            <div class="operate" v-show="cje2">
                                <div class="selected—title" >
                                    已选中<span class="selected—count">{{count2}}</span>项
                                </div>
                                <div  class="selected—title2" v-show="isOne2">
                                    <span @click="isAddRecord2=true"><i class="el-icon-circle-plus-outline"></i>添加跟进记录</span>
                                </div>
                                <div  class="selected—title1" v-show="isOne2" @click="xiugai32('退款','first2')">
                                    <span><i class="el-icon-edit"></i>修改</span>
                                </div>
                            </div>
                        </div>
                        <el-table
                                :data="tableData42"
                                style="width: 100%"
                                max-height="420"
                                :default-sort = "{prop: 'date', order: 'descending'}"
                                @selection-change="handleSelectionChange2">
                            <el-table-column
                                    type="selection"
                                    width="50"
                                    align="center">
                            </el-table-column>
                            <el-table-column
                                    fixed
                                    prop="returnedmoneyId"
                                    label="ID"
                                    sortable
                                    align="center"
                                    width="60">
                            </el-table-column>
                            <el-table-column
                                    label="主题"
                                    sortable
                                    align="center"
                                    width="160">
                                <template slot-scope="sp">
                                    <a v-html="sp.row.returnedmoneyTheme" class="businame" @click="todetails(sp.row)"></a>
                                </template>
                            </el-table-column>
                            <el-table-column
                                    label="客户"
                                    sortable
                                    align="center"
                                    width="150">
                                <template slot-scope="sp">
                                    <a v-html="sp.row.clientId.clientName" class="businame" @click="kehutodetails(sp.row)"></a>
                                </template>
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyMoney"
                                    label="金额"
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    label="计划回款日期"
                                    align="center"
                                    sortable
                                    width="130">
                                <template slot-scope="d">
                                    {{d.row.returnedmoneyTime | formatDate}}
                                </template>
                            </el-table-column>
                            <el-table-column
                                    label="退货单"
                                    sortable
                                    align="center"
                                    width="150"
                                    prop="returgoodId.returgoodTheme">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyIssue"
                                    label="期次"
                                    sortable
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRetuen"
                                    label="是否退款"
                                    sortable
                                    align="center"
                                    width="140">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyBuck"
                                    label="外币备注"
                                    align="center"
                                    sortable
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRate"
                                    label="与人民币汇率"
                                    align="center"
                                    sortable
                                    width="140">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyPayment"
                                    label="支付方式"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRefund"
                                    label="计划类型"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyOwner"
                                    label="所有者"
                                    sortable
                                    align="center"
                                    width="120">
                            </el-table-column>
                            <el-table-column
                                    prop="returnedmoneyRemark"
                                    label="备注"
                                    align="center"
                                    sortable
                                    width="100">
                            </el-table-column>
                            <el-table-column
                                    fixed="right"
                                    label="操作"
                                    align="center"
                                    width="100">
                                <template slot-scope="d">
                                    <!--如果是三个标签，后两个标签padding-left: 10px;-->
                                    <i style="font-size:18px;color: #409EFF" @click="xiugai(d.row,'退款','first2')" class="el-icon-edit"></i>
                                    <svg @click="jl(d.row,'first2','退款')" style="padding-left: 10px"  class="icon" aria-hidden="true">
                                        <use xlink:href="#icon-cz-jl"></use>
                                    </svg>
                                    <!--删除列表的删除按钮和恢复-->
                                    <i style="font-size:18px;padding-left: 10px;color: #409EFF" class="el-icon-delete" @click="wylisc(d.row,'退款')"></i>
                                </template>
                            </el-table-column>
                        </el-table>
                    </div>

                    <!--分页框-->
                    <div style="border: 1px solid #BFBFBF;padding: 10px;background-color: white;border-top: white;">
                        <div style="text-align: center">
                            <el-pagination
                                    @size-change="handleSizeChange2"
                                    @current-change="handleCurrentChange2"
                                    :current-page.sync="currentpage2"
                                    :page-sizes="[10, 20, 30, 40]"
                                    :page-size="pageSize2"
                                    layout="total, sizes, prev, pager, next, jumper"
                                    :total="totalSize2"
                            >
                            </el-pagination>
                        </div>
                    </div>
                </div>
            </el-container>
        </el-tab-pane>
    </el-tabs>
    <!--最大div-->
</template>


<script>
    import Crypto  from '../router//secret.js'
    import {formatTimeToStr} from '../router//format.js'
    export default {
        name: "ZHueikuanJIhua",
        data() {
            return {
                activeName: 'first',//标签页
                multipleTable: [],//存放选中值的数组
                isOne:true,//选中项为1就出现添加跟进记录和修改
                seek:false,//解除搜索是否显示
                options: [{
                    value: '已回款',
                    label: '已回款',
                },{
                    value: '未回款',
                    label: '未回款',
                    }],
                value7: '',
                //场景一
                cjy:true,
                //场景二
                cje:false,
                //搜索框
                input23: '',
                //表格信息
                tableData4: [],
                //分页
                totalSize: 1,//数据总条数
                pageSize: 10,//页大小
                currentpage: 1,//当前页面
                //退款计划页面
                multipleTable2: [],//存放选中值的数组
                isOne2:true,//选中项为1就出现添加跟进记录和修改
                seek2:false,//解除搜索是否显示
                options2: [ {
                    value: '已回款',
                    label: '已退款',
                },{
                    value: '未回款',
                    label: '未退款',
                }],
                value72: '',
                //场景一
                cjy2:true,
                //场景二
                cje2:false,
                //搜索框
                input232: '',
                //表格信息
                tableData42: [],
                //分页
                totalSize2: 1,//数据总条数
                pageSize2: 10,//页大小
                currentpage2: 1//当前页面
            }
        },
        created:function () {
            if(this.$route.query.row!=null){
                this.activeName = this.$route.query.row;
            }
            if(this.$route.query.ys!=null){
                if(this.activeName=='first'){
                    this.currentpage=this.$route.query.ys;
                }else {
                    this.currentpage2=this.$route.query.ys;
                }
            }
            if(this.$route.query.ydx!=null){
                if(this.activeName=='first'){
                    this.pageSize=this.$route.query.ydx;
                }else {
                    this.pageSize2=this.$route.query.ydx;
                }
            }
            this.biapgecx(this.currentpage,this.pageSize,this.input23,this.value7,'回款');
            this.biapgecx2(this.currentpage2,this.pageSize2,this.input232,this.value72,'退款');
        },
        methods: {
            jl(cp,bq,lx){
                if(cp.returnedmoneyRetuen=='否'){
                    if(lx=='回款'){
                        this.$router.push({
                            path:'/hkjlxinzen',
                            query: {hk: cp,dz:'hkzy',bq:bq,ys:this.currentpage,ydx:this.pageSize}
                        });
                    }else {
                        this.$router.push({
                            path:'/hkjlxinzen',
                            query: {hk: cp,dz:'hkzy',bq:bq,ys:this.currentpage2,ydx:this.pageSize2}
                        });
                    }
                }else {
                    this.$message({
                        showClose: true,
                        type: 'error',
                        message: '已生成记录无需在生成!',
                    });
                }

            },
            /*跳客户详情转详情方法*/
            kehutodetails(rows){
                rows = escape(Crypto.set(rows.clientId.clientId)); // 加密数据
                this.$router.push({
                    path:'/tfyxq',
                    query: {
                        row:rows
                    }
                });
            },
            //查询回款计划方法
            biapgecx(currentpage,pageSize,search,value7,value8){
                window.console.log(search);
                this.$axios.get("http://localhost:8088/hk_list",{params:{page:currentpage,size:pageSize,search:search,search2: value7,search3: value8}})
                    .then(v=>{
                            this.tableData4 = v.data.rows;
                            this.totalSize = v.data.total;
                        }
                    ).catch()
            },
            /*跳转详情方法*/
            todetails(rows){
                this.$router.push({
                    path:'/hkxianqin',
                    query: {
                        key:rows
                    }

                })
            },
            //修改方法
            xiugai(cp,leix,bq){
                if(cp.returnedmoneyRetuen=='否') {
                    if(cp.returnedmoneyRefund=='回款'){
                        this.$router.push({
                            path: '/hkxinzen',
                            query: {key: cp, row: leix,dz:'hkzy',bq:bq,ys:this.currentpage,ydx:this.pageSize}
                        });
                    }else {
                        this.$router.push({
                            path: '/hkxinzen',
                            query: {key: cp, row: leix,dz:'hkzy',bq:bq,ys:this.currentpage2,ydx:this.pageSize2}
                        });
                    }
                }else {
                    this.$message({
                        showClose: true,
                        type: 'error',
                        message: '已生成记录无法修改!',
                    });
                }
            },
            xinzen(cp,bq){
                window.console.log(cp)
                this.$router.push({
                    path:'/hkxinzen',
                    query: {row:cp,dz:'hkzy',bq:bq}
                });
            },
            //修改方法2
            xiugai2(leix,bq){
                this.$refs.fapiaoTable.selection.forEach((pro)=>{
                    if(pro.returnedmoneyRetuen=='否') {
                        this.$router.push({
                            path: '/hkxinzen',
                            query: {key: pro, row: leix,dz:'hkzy',bq:bq}
                        });
                    }else {
                        this.$message({
                            showClose: true,
                            type: 'error',
                            message: '已生成记录无法修改!',
                        });
                    }
                });
            },
            xiugai32(leix,bq){
                this.$refs.fapiaoTable.selection.forEach((pro)=>{
                    if(pro.returnedmoneyRetuen=='否') {
                        this.$router.push({
                            path: '/hkxinzen',
                            query: {key: pro, row: leix ,dz:'hkzy',bq:bq}
                        });
                    }else {
                        this.$message({
                            showClose: true,
                            type: 'error',
                            message: '已生成记录无法修改!',
                        });
                    }
                });
            },
            /*销毁计划方法*/
            wylisc(cp,jh){
                if(cp.returnedmoneyRetuen=='否'){
                    this.$confirm('此操作将销毁该计划, 是否继续?', '提示', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning'
                    }).then(() => {
                        this.$axios.post("http://localhost:8088/delete_jh2",cp)
                            .then(()=>{
                                this.$message({
                                    type: 'success',
                                    message: '销毁成功!',
                                });
                                this.biapgecx(this.currentpage,this.pageSize,this.input23,this.value7,'回款');
                                this.biapgecx2(this.currentpage2,this.pageSize2,this.input232,this.value72,'退款');
                            }).catch(()=>{
                                this.$message({
                                    showClose: true,
                                    message: '销毁失败',
                                    type: 'error'
                                });
                            }
                        )
                    }).catch(() => {
                        this.$message({
                            type: 'info',
                            message: '已取消销毁'
                        });
                    });
                }else{
                    if(jh=='回款'){
                        this.$message({
                            showClose: true,
                            message: '该计划已回款无法删除',
                            type: 'error'
                        });
                    }else {
                        this.$message({
                            showClose: true,
                            message: '该计划已退款无法删除',
                            type: 'error'
                        });
                    }
                }
            },
            /*搜索框方法*/
            sousuo() {
                this.currentpage=1
                this.pageSize=10
                this.biapgecx(this.currentpage,this.pageSize,this.input23,this.value7,'回款');
            },
            /*分页数方法*/
            handleSizeChange(val) {
                this.biapgecx(this.currentpage,val,this.input23,this.value7,'回款');
            },
            /*当前页方法*/
            handleCurrentChange(val) {
                this.biapgecx(val,this.pageSize,this.input23,this.value7,'回款');
            },
            //复选框选中的
            handleSelectionChange(val) {
                this.multipleTable = val;//  this.multipleTable 选中的值
                if(this.multipleTable.length>0){
                    this.cjy=false;//第一行隐藏
                    this.cje=true;//批量操作栏出现
                }
                //选中项大于1不能执行添加跟进记录和修改按钮
                if(this.multipleTable.length>1){
                    this.isOne=false;
                }else if(this.multipleTable.length==0){//选中项为0时
                    this.cjy=true;//第一行出现
                    this.cje=false;//批量操作栏隐藏
                }else{
                    this.isOne=true;//添加跟进记录和修改出现
                }
                window.console.log(val);
            },
            //复选框选中的
            handleSelectionChange2(val) {
                this.multipleTable2 = val;//  this.multipleTable 选中的值
                if(this.multipleTable2.length>0){
                    this.cjy2=false;//第一行隐藏
                    this.cje2=true;//批量操作栏出现
                }
                //选中项大于1不能执行添加跟进记录和修改按钮
                if(this.multipleTable2.length>1){
                    this.isOne2=false;
                }else if(this.multipleTable2.length==0){//选中项为0时
                    this.cjy=true;//第一行出现
                    this.cje2=false;//批量操作栏隐藏
                }else{
                    this.isOne2=true;//添加跟进记录和修改出现
                }
            },
            /*选择类型商机方法*/
            changebusni(){
                if(this.value7!=''){
                    this.seek=true;
                }
                this.biapgecx(this.currentpage,this.pageSize,this.input23,this.value7,'回款');
            },
            /*解除选择类型商机方法*/
            cancelseek(){
                this.value7='';
                this.input23='';
                this.seek=false;
                this.biapgecx(this.currentpage,this.pageSize,this.input23,this.value7,'回款');
            },
            /*解除选择类型商机方法退款页面*/
            cancelseek2(){
                this.value72='';
                this.input232='';
                this.seek2=false;
                this.biapgecx2(this.currentpage,this.pageSize,this.input23,this.value7,'退款');
            },
            /*选择类型商机方法退款页面*/
            changebusni2(){
                if(this.value72!=''){
                    this.seek2=true;
                }
                this.biapgecx2(this.currentpage2,this.pageSize2,this.input232,this.value72,'退款');
            },
            /*分页数方法退款页面*/
            handleSizeChange2(val) {
                this.biapgecx2(this.currentpage2,val,this.input232,this.value72,'退款');
            },
            /*当前页方法退款页面*/
            handleCurrentChange2(val) {
                this.biapgecx2(val,this.pageSize2,this.input232,this.value72,'退款');
            },
            /*搜索框方法退款页面*/
            sousuo2() {
                this.currentpage2=1
                this.pageSize2=10
                this.biapgecx2(this.currentpage2,this.pageSize2,this.input232,this.value72,'退款');
            },
            //查询退款计划方法
            biapgecx2(currentpage,pageSize,search,value7,value8){
                window.console.log(search);
                this.$axios.get("http://localhost:8088/hk_list",{params:{page:currentpage,size:pageSize,search:search,search2: value7,search3: value8}})
                    .then(v=>{
                            this.tableData42 = v.data.rows;
                            this.totalSize2 = v.data.total;
                        }
                    ).catch()
            },
        },
        computed:{
            count(){
                return this.multipleTable.length
            },
            count2(){
                return this.multipleTable2.length
            }
        },
        filters: {
            formatDate: function (time) {
                if (time != null && time != "") {
                    var date = new Date(time);
                    return formatTimeToStr(date, "yyyy-MM-dd");
                } else {
                    return "";
                }
            }
        }

    }
</script>

<style scoped>
    .icon {
        width: 1.3em;
        height: 1.3em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        color:  #409EFF;
    }
    .addview:hover{
        color: white;
    }
    a{
        text-decoration: none;
        color: #409EFF;
    }
    a:hover{
        color: white;
    }
    .busin:hover{
        color: #3E84E9;
        cursor:pointer;
    }
    .businame{
        color: #606266;
    }
    .businame:hover{
        color: #409EFF;
        cursor:pointer;
    }
    .operate{
        font-size: 12px;
        height: 40px;
        padding: 0 20px;
        color: #777;
        background: white;
    }
    .selected—title{
        margin-top: 15px;
        margin-left: -6px;
        border-right: 1px solid #e6e6e6;
        width: 120px;
        height:20px;
        float: left;
    }
    .selected—title1{
        margin-top: 15px;
        border-right: 1px solid #e6e6e6;
        width: 86px;
        height:20px;
        float: left;
        cursor: pointer;
    }

    .selected—title1 span{
        margin-left: 24px;
    }
    .selected—title1 span:hover{
        color:#409eff;
    }
    .selected—title2{
        margin-top: 15px;
        border-right: 1px solid #e6e6e6;
        width: 129px;
        height:20px;
        float: left;
        cursor: pointer;
    }

    .selected—title2 span{
        margin-left: 24px;
    }
    .selected—title2 span:hover{
        color:#409eff;
    }
</style>